find_package(GTest)

enable_testing()

function(add_test test_name source_file)
    add_executable(${test_name} ${source_file})
    target_link_libraries(${test_name} PRIVATE GTest::gtest KawausoGateway)
    gtest_discover_tests(${test_name})
endfunction()

add_test(TestLocalStore test_local_store.cc)

add_executable(l3fwd_power l3fwd_power.cc)
target_link_libraries(l3fwd_power KawausoGateway)
